using Microsoft.AspNetCore.Mvc;

namespace Dcy.Dapr.Cron.Controllers;

[ApiController]
public class CronController : ControllerBase
{
    private readonly ILogger<CronController> _logger;

    public CronController(ILogger<CronController> logger)
    {
        _logger = logger;
    }

    [HttpPost]
    [Route("scheduled")]
    public IActionResult Get()
    {
        _logger.LogInformation("Getting weather forecast {date}",DateTime.Now.ToString("MM/dd/yyyy HH:mm:ss"));
        return Ok();
    }
}